package com.yyt.send.service;

import com.alibaba.fastjson.JSONObject;
import com.yyt.send.dto.Send1DTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 凤凰网验证码
 *
 * @author yeyangtao created at 16:23 2020/9/14
 */
@FeignClient(url = "https://user.ifeng.com/",name = "sendMessage")
public interface SendService {
    @PostMapping(value = "/api/v1/sendsms")
    JSONObject send1(@RequestParam String platform,
                     @RequestParam int systemid,
                     @RequestBody Send1DTO dto);
}
